package com.hgkj.system.mapper;

import com.hgkj.system.domain.SysRole;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface SysRoleMapper {
    List<String> selectRolesByUserId(long userId);

    List<SysRole> selectRoles(SysRole role);

    SysRole selectRoleByRoleName(String roleName);

    SysRole selectRoleByRoleKey(String roleKey);

    int insertRole(SysRole role);

    int updateRole(SysRole role);

    int deleteRoleById(Long roleId);
}
